package com.usian.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Users {
    private Integer id;
    private String nam;
    private Integer age;
    private Integer sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nam='" + nam + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", birth=" + birth +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNam() {
        return nam;
    }

    public void setNam(String nam) {
        this.nam = nam;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public Users() {
    }

    public Users(Integer id, String nam, Integer age, Integer sex, Date birth) {
        this.id = id;
        this.nam = nam;
        this.age = age;
        this.sex = sex;
        this.birth = birth;
    }
}
